{% load i18n djangobmf_angularjs %}{% spaceless %}{% verbatim %}
<!--
<h2>Header (todo):</h2>
<ul>
    <li>clone-view</li>
    <li>notifications</li>
</ul>
-->
<div class="clearfix">
    <div class="btn-toolbar pull-left" role="toolbar">
        <div ng-if="ui.workflow && ui.workflow.transitions.length > 0" class="btn-group">
            <button type="button" class="btn btn-bmfworkflow dropdown-toggle" data-toggle="dropdown">{{ ui.workflow.name }} <span class="caret"></span></button>
                <ul class="dropdown-menu" role="menu">
                    <li ng-repeat="obj in ui.workflow.transitions">
                        <a class="bmf-edit" bmf-form="workflow" href="{{ obj.url }}">{{ obj.name }}</a>
                    </li>
                </ul>
        </div>
        <div ng-if="ui.workflow && ui.workflow.transitions.length == 0" class="btn-group">
            <button type="button" class="btn btn-print disabled">{{ ui.workflow.name }} <span class="caret"></span></button>
        </div>
        {% endverbatim %}
        <div ng-if="ui.reports.length == 1" class="btn-group">
            <a ng-href="{% ng "ui.reports[0].url" %}" class="btn btn-bmfreport">{% ng "ui.reports[0].verbose_name" %}</a>
        </div>
    </div>
    <div class="btn-toolbar pull-right" role="toolbar">
        {% verbatim %}
        <div ng-if="!ui.workflow || ui.workflow && ui.workflow.update" class="btn-group">
            <a class="btn btn-bmfupdate" bmf-form="update" href="{{ ui.views.update }}"><span class="glyphicon glyphicon-wrench"></span> {% endverbatim %}{% trans "Edit" %}{% verbatim %}</a>
        </div>
        <div ng-if="ui.workflow && !ui.workflow.update" class="btn-group">
            <a class="btn btn-default disabled" href="#"><span class="glyphicon glyphicon-wrench"></span> {% endverbatim %}{% trans "Edit" %}{% verbatim %}</a>
        </div>

        <div ng-if="!ui.workflow || ui.workflow && ui.workflow.delete" class="btn-group">
            <a class="btn btn-bmfdelete" bmf-form="delete" href="{{ ui.views.delete }}"><span class="glyphicon glyphicon-trash"></span></a>
        </div>
        <div ng-if="ui.workflow && !ui.workflow.delete" class="btn-group">
            <a class="btn btn-default disabled" href="#"><span class="glyphicon glyphicon-trash"></span></a>
        </div>
        {% endverbatim %}
    </div>
</div>
<hr>

<bmf-template></bmf-template>

<!--
<h2>Footer: (todo)</h2>
<ul>
    <li>upload files</li>
    <li>paginated</li>
</ul>
    <div class="panel-body">
    </div>
-->
{% endspaceless %}
